package com.yanzq.controller.impl;

import com.yanzq.controller.UserController;
import com.yanzq.pojo.User;
import com.yanzq.service.UserService;
import com.yanzq.service.impl.UserServiceImplements;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class UserControllerImplements implements UserController {
    private UserService userService = new UserServiceImplements();
    @Override
    @RequestMapping("/user")
    public List<User> getRequest() {
        List<User> result = userService.getInfo();
        return result;
    }
}
